package com.qf.chuang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {

    private Integer id;
    private String name;
    private String salary;
    private Integer dept_id;

    private Department department;   // 一个员工属于一个部门
}
